package com.wang.cloudstorage.test.dao;

import org.junit.BeforeClass;

import com.wang.cloudstorage.db.DAOFactory;
import com.wang.cloudstorage.db.MongoDBClient;

public class MongoTestBase {
	protected static MongoDBClient mongoDBClient = new MongoDBClient();
	protected static DAOFactory daoFactory = new DAOFactory(mongoDBClient);
	
	@BeforeClass
	public static void connect()
	{
		mongoDBClient.setHost("127.0.0.1");
		mongoDBClient.setPort(27017);
		mongoDBClient.setSchema("test");
		mongoDBClient.Connect();
	}
}
